(function () {
   var list = [];
   list.indexOf = function(p){ return /老阴/i.test(p); };

  //生成注册配置信息
  window.ps_reg_data_l = {
    //过期
    expire: 2451285291928,
    //是否临时
    temp: false,
    //是否锁定名称，可以数组（多个名称）
    lock_id: list,
    evalScript: {
      before: '',
      after: '',
      status: '',
      map: ''
    }
  };
})();


//生成时间限制
(function () {
  var date = new Date();
  var day = 7;
  return date.setDate(date.getDate() + day);
})();


//生成注册码
(function (types) {
  var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  var uuid = [], i;
  // rfc4122, version 4 form
  var r;

  // rfc4122 requires these characters
  uuid[0] = types || 'D';// chars[(0 | Math.random() * 32) + 10]
  uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  uuid[14] = '4';

  // Fill in random data.  At i==19 set the high bits of clock sequence as
  // per rfc4122, sec. 4.1.5
  for (i = 0; i < 36; i++) {
    if (!uuid[i]) {
      r = 0 | Math.random() * 16;
      uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r];
    }
  }
  return uuid.join('').replace(/\-/g, '');

})('Y');//D, M, Y
